package main

import (
	"flag"
	"github.com/smallnest/rpcx/server"
	"mountain/services/math_service"
)

var (
	addr = flag.String("addr", "localhost:8972", "server address")
)


func main() {
	flag.Parse()
	s := server.NewServer()

	s.RegisterName("math", new(math_service.Arith), "")
	s.Register()
	s.Serve("tcp", *addr)

}